package com.koron.operation.classes.shift.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 查询两票
 * @author jzp
 * @since 2021/10/29
 */
@Service
@FeignClient(value = "eam-service-ticket", fallbackFactory = FeignFallbackFactory.class)
public interface TicketFeignService {
    /**
     * 查询操作票list
     */
    @GetMapping("operation/queryListNoPage")
    Response<Object> opTicketList(@RequestParam("workerlist") List<String> staffs,
                             @RequestParam("startTime") String startTime);

    /**
     * 查询工作票list
     */
    @GetMapping(value = "work/workticket/getListForChangeShifts")
    Response<Object> workTicketList(@RequestParam("directorList") List<String> staffs,
                             @RequestParam("estimatedStartTime") String startTime);

}
